package com.expand.learn.controller;

import com.expand.learn.event.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhanghaidong
 * @version v1.0
 * @description
 * @date 2020/3/2
 */
@RestController
@RequestMapping("/event/user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "/register", method = RequestMethod.POST)
    public String register() {

        userService.register("张三");
        return "success";
    }
}
